#pragma once
#ifndef __RENDERTARGETView_H__
#define __RENDERTARGETView_H__

#include "RenderView.h"

namespace WindGE
{
	class WIND_CORE_API RenderTargetView : public RenderView
	{
	public:
		RenderTargetView();
		virtual ~RenderTargetView();

		virtual bool init(RenderDevicePtr renderDevice, TexturePtr tex, Texture2DPtr texBuff);
		virtual void release();

		inline ID3D11RenderTargetView*  d3dptr()	const	{ return rtv_;	}
		inline ID3D11RenderTargetView** d3dptrptr()			{ return &rtv_; }

	private:
		ID3D11RenderTargetView*		rtv_;
	};

}//end namespace WindGE

#endif	//__RENDERTARGETView_H__
